package com.company.createtype.abstractFactory;

import com.company.createtype.factoryfunction.IMethodFactory;

public abstract class AbstractFactory {

    public IMethodFactory[] getFactory(int type){
       if (type==0){
           IMethodFactory[] factories=new IMethodFactory[3];
           factories[0] = new CarBodyFactory();
           factories[1] = new CarGlassFactory();
           factories[2] = new CarWhileFactory();
           return factories;
       }
       return null;
    }

}
